/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package reittiopas;

/**
 *
 * @author Jaakko, Petteri
 */
public class Location {

    private String address;
    private String number;
    private String city;
    
    private String coordinateX;
    private String coordinateY;
    private String arrivalTime;
    private String departureTime;
    
    private int locationType; // from ReittiopasDefinitions.Location


    public Location(String addressName, String number, String city) {
    	
    	this.address = addressName;
    	this.number = number;
    	this.city = city;
    }
    
    public Location() {
    	
    }
    
    
    public Location(String address, String coordinateX, String coordinateY, String arrivalTime, String departureTime) {
        this.address = address;
        this.coordinateX = coordinateX;
        this.coordinateY = coordinateY;
        this.arrivalTime = arrivalTime;
        this.departureTime = departureTime;
    }



    public String getAddress() {
        return address;
    }
    
    public void setNumber(String number) {
    	this.number = number;
    	
    }
    
    public String getNumber() {
    	return this.number;
    }
    
    
    
    public int getLocationType() {
		return locationType;
	}

	public void setLocationType(int locationType) {
		this.locationType = locationType;
	}

	public void setCity(String city) {
    	this.city = city;
    }
    
    public String getCity() {
    	return this.city;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(String arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public String getCoordinateX() {
    	
    	return coordinateX;
    	
    	//return coordinateX;
    }

    public void setCoordinateX(String coordinateX) {
        this.coordinateX = coordinateX;
    }

    public String getCoordinateY() {
        
        
    	
    	return coordinateY;
    }

    public void setCoordinateY(String coordinateY) {
        this.coordinateY = coordinateY;
    }

    public String getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(String departureTime) {
        this.departureTime = departureTime;
    }
    
    public String getFullAddress() {
    	String fullAddress = "";
    	if (this.address != null)
    		fullAddress += this.address;
    	if (this.number != null)
    		fullAddress += " " + this.number;
    	if (this.city != null)
    		fullAddress += " " +this.city;
    	
    	return fullAddress;
    }
    

}
